package com.filter;

import javax.servlet.*;
import javax.servlet.annotation.WebFilter;
import java.io.IOException;

/**
 * @author wzm
 * @create 2023-05-13 16:15
 */
@WebFilter("/*")
public class FilterA implements Filter {


    /*做过滤器功能*/
    @Override
    public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException {

        System.out.println("1.A过滤器前操作");
        chain.doFilter(request,response);
        System.out.println("2.A过滤器后操作");

    }

}
